Skip to main content

Configuration


Configure the wireless adapter for monitoring​

Connect the wireless adapter​

  1. Power on the Kali VM and login as assessor

  2. Plug the ALFA Atheros AR9271 Wi-Fi USB adapter (or your substitute) into the MIP

  3. Right click the Kali VM and Connect (Disconnect from host) the device named Qualcomm Atheros UB91C (or your substitute) under Removable Devices

  4. Open a terminal window within the Kali and ensure that the wlan0 interface is present:

    note

    The first Wi-Fi adapter attached will be assigned the interface name wlan0. Any additional adapters that are connected will have their appended number increment from wlan#.

    sudo iw dev

Create a wireless monitoring interface​

note

The monitoring interface is not permanent and will need to be created after every reboot or disconnection of the wireless dongle.

  1. Create a virtual monitoring interface mon0 attached to wlan0:

    sudo iw dev wlan0 interface add mon0 type monitor
  2. Ensure that the mon0 interface has been created:

    sudo iw dev


Configure and start the GPS daemon​

Connect the GPS dongle​

  1. Plug the BU-353S4 GPS USB dongle (or your substitute) into the MIP

  2. Right click the Kali VM and connect the device named Prolific USB-Serial Controller D (or your substitute) under Removable devices

  3. Ensure that the Kali VM has connected the GPS adapter by checking dmesg logs

    tip
    • The first serial USB device that is attached will be assigned /dev/ttyUSB0. Additional serial USB devices will increment from /dev/ttyUSB#.
    • A successful connection of the GPS USB device will display similar log messages:
    sudo dmesg

    NOTE: Some devices may be assigned /dev/ttyACM# - pay attention to the dmesg logs and use the assigned device.

Configure the GPS daemon​

  1. Set the configuration for gpsd to utilize the USB device in /etc/default/gpsd (replace /dev/ttyUSB# with the actual device):

    sudo vi /etc/default/gpsd
    # Devices gpsd should collect to at boot time.
    # They need to be read/writeable, either by user gpsd or the group dialout.
    DEVICES="/dev/ttyUSB#"

    # Other options you want to pass to gpsd
    GPSD OPTIONS="-n"

    # Automatically hot add/remove USB GPS devices via gpsdctl
    USBAUTO="true
  2. Start the gpsd service:

    sudo systemctl restart gpsd
  3. Ensure the gpsd service is active and running without error:

    sudo systemctl status gpsd

Verify GPS connectivity​

  1. Ensure that GPS is properly communicating by running gpsmon in a separate tab:

    note
    • If the gpsmon TUI pops up with statistical information and scrolling serial data on the bottom of the screen, this indicates that the GPS adapter is active and sending data.
    • If tcp://localhost:2947 Unknown device> JSON slave driver requires 80x1 is displayed, you just need to maximize the terminal window
    sudo gpsmon

  2. Open xgps in a separate tab for visual of GPS satellites and lat/long data:

    tip
    • You may need to maximize the window in order to see the GPS Data section
    sudo xgps

    NOTE: If Latitude and Longitude under the GPS Data section is n/a, then you do not have a strong enough signal from the GPS satellites


Configure Kismet​

Configure GPS and WiFi monitoring settings​

  1. Add the following configuration lines to utilize GPSD and the WiFi monitoring interface in /etc/kismet/kismet.conf:
    sudo vi /etc/kismet/kismet.conf
    gps=gpsd:host=localhost,port=2947
    track_location=true
    source=mon0

Configure logging​

  1. Create the logging directory for Kismet:
    sudo mkdir /var/log/kismet